package router

import (
	"github.com/kataras/iris/v12"
	"wit-admin-go/business/controller"
)

func Test(app iris.Party) {
	test := app.Party("/test")
	{
		test.Post("/createTest", controller.Test.CreateTest).Name = "创建测试"
		test.Get("/getTestById", controller.Test.GetTestById).Name = "测试详情"
		test.Get("/getTestList", controller.Test.GetList).Name = "测试列表"
		test.Delete("/deleteTest", controller.Test.DeleteTest).Name = "删除测试"
		test.Delete("/removeTest", controller.Test.RemoveTest).Name = "永久删除测试"
		test.Put("/updateTest", controller.Test.UpdateTest).Name = "更新测试"

	}
}
